From 4c879d707f6012db7916e0fbc09b45ff48633c6f Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Fri, 10 Apr 2026 22:26:53 +0200 Subject: [PATCH] status/keyboard: Send activation token when launching Tecla This ensures the window will be correctly focused, even when using strict focus mode. Part-of: --- js/ui/status/keyboard.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 72d15e604..4f7471ef5 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -15,7 +15,6 @@ import * as Main from '../main.js'; import * as PopupMenu from '../popupMenu.js'; import * as PanelMenu from '../panelMenu.js'; import * as SwitcherPopup from '../switcherPopup.js'; -import * as Util from '../../misc/util.js'; export const INPUT_SOURCE_TYPE_XKB = 'xkb'; export const INPUT_SOURCE_TYPE_IBUS = 'ibus'; @@ -1177,8 +1176,10 @@ class InputSourceIndicator extends PanelMenu.Button { } _showLayout() { - Main.overview.hide(); + const app = + Shell.AppSystem.get_default().lookup_app('org.gnome.Tecla.desktop'); - Util.spawn(['tecla']); + Main.overview.hide(); + app?.activate(); } }); -- 2.39.5